package com.example.javabasic.shejimoshi.fangwenzhe.demo1;
//具体元素B
public class ConcreteElementB implements Element {
    //接受方法
    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public String operationB(){
        return "具体元素 B 的operationB方法";
    }
}
